package com.zxh.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @Author zhengxh
 * @Date 2025/10/19 1:02
 * @Describe
 */
@Documented
@Constraint(validatedBy = {ListValueConstraintValidator.class})
@Target({METHOD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
public @interface ListValue {

    String message() default "{com.zxh.common.valid.ListValue.message}";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] playlod() default { };

    int[] vals() default { };
}
